package spec.tianjunxiu.unit3.lianxi;

public class Test {
   /* private static int m;
    public static void fun()
    {
        System.out.println(m);
    }
    public static void main(String args){
        fun();
    }*/
  /*  private float f=1.0f;
    int m=12;
    public int n=1;
    public static void main(String arg[]){
        Test t=new Test();
        System.out.println(t.f);
    }*/
    public class College_student {
        //属性
        String xm;
        int xh;
        String xx="四川幼专";
        String xb;
        String bj;
        //方法
    /*返回值
    方法名
    参数列表
    函数体
     */
        String study(String course){
            return "我在打游戏"+course;
        }
        //构造方法
        College_student(String xm,String xb,int xh){
            this.xm =xm;
            this.xh=xh;
            this.xb=xb;
        }
        College_student(String xm,int xh,String xb){
            this.xb="应用技术系";
            this.xm =xm;
            this.xh=xh;
            this.xb=xb;
        }
    }
}
